#include "heuristics.hh"
#include <structures.hh>

#include <cmath>

unsigned int getMusicianCost1 ( Musician* m, Concert* c ) {
  unsigned int time = 0;
  unsigned int restingTime = 0;
  
  for ( unsigned int i = 0; i < m->pieces.size(); ++i){
    time += m->pieces[i]->length;
  }

  restingTime = c->totalTime = time;
  return restingTime*m->hourlyRate;
}

unsigned int getMusicianCost2 ( Musician *m, Concert *c){

  return m->pieces.size() * m->hourlyRate;  
}

unsigned int getMusicianCost3 ( Musician *m, Concert *c ){
  return m->hourlyRate;
}

